<!--{template @admin/header}--> 
{~ui('loader')->addon('picker.date')}
<form action="{$action}" method="post"> <table cellspacing="1" cellpadding="4" width="100%" align="center" class="tableborder"> <tr class="header"> <td colspan="2">添加广告</td> </tr> 
  <tr>
    <td bgcolor="#F4F8FC">广告名称：</td>
    <td align="right"><input name="ad_name" type="text" id="ad_name" size="40"/> </td>
  </tr> 
   <tr>
    <td bgcolor="#F4F8FC">媒介类型：</td>
    <td align="right">  <select name="media_type" >
         <option value='0'>图片</option>
         </select>
	</td>
  </tr> 
  <tr>
    <td bgcolor="#F4F8FC">广告位选择：</td>
    <td align="right">
    <!--{if empty($position_list)}-->
    还没有广告位,请<a href="?mod=ad&code=position_add" >添加</a>广告位后再来添加广告
    <!--{else}-->
    <select name="position_id">
     <!--{loop $position_list $i $v}--> 
      <option value="{$v['position_id']}">{$v['position_name']}</option>
      <!--{/loop}-->
    </select>
    <!--{/if}-->
    </td>
  </tr> 
   <tr> <td width="18%" bgcolor="#F4F8FC">开始时间：</td> <td align="right"> <input type="text" onfocus="WdatePicker({isShowClear:false,readOnly:true,dateFmt:'yyyy年MM月dd日 HH时mm分ss秒',startDate:'{echo date('Y-m-d H:i:s', time());}',vel:'start_time'})" size="35" class="Wdate" value="{echo date('Y年m月d日 H时i分s秒', time());}" /> <input name="start_time" type="hidden" id="start_time" value="{echo date('Y-m-d H:i:s', time());}" />
    <font color="red">*</font> </td> </tr>
      <tr> <td width="18%" bgcolor="#F4F8FC">结束时间：</td> <td align="right"> <input type="text" onfocus="WdatePicker({isShowClear:false,readOnly:true,dateFmt:'yyyy年MM月dd日 HH时mm分ss秒',startDate:'{echo date('Y-m-d H:i:s', time());}',vel:'end_time'})" size="35" class="Wdate" value="{echo date('Y年m月d日 H时i分s秒', time());}" /> <input name="end_time" type="hidden" id="end_time" value="{echo date('Y-m-d H:i:s', time());}" />
    <font color="red">*</font> </td> 
      </tr>
  <tr>
    <td bgcolor="#F4F8FC">广告链接：</td>
    <td align="right"><input name="ad_link" type="text" id="ad_link"  size="40"/> </td>
  </tr> 
   <tr>
    <td bgcolor="#F4F8FC">图片链接：</td>
    <td align="right"><input name="ad_code" type="text" id="ad_code" size="60"/>
      &nbsp;&nbsp;<font color="red">*</font>（<font color="red">先把图片上传到云储存空间然后把生成的链接复制到这儿</font>）</td>
  </tr> 
  
     <tr>
<td>所属城市：</td><td><select name="city_id" id="city_id">
{loop $city $i $value}	  
<option value="{$value['cityid']}">{$value['cityname']}</option>
{/loop}
</select>
</td></tr> 
  <tr>
      <td bgcolor="#F4F8FC">是否开启</td>
      <td align="right">
        <input type="radio" name="enabled" value="1"  checked  />开启   <input type="radio" name="enabled" value="0"  />关闭      </td>
    </tr>
  
 </table> <br> <center><input type="submit" class="button" name="addsubmit" value="提 交"></center> </form>
{template @admin/footer}